//
//  MenuTuijianShicaiCollectionViewCell.m
//  Products_B
//
//  Created by lanou on 16/6/2.
//  Copyright © 2016年 朋学友. All rights reserved.
//

#import "MenuTuijianShicaiCollectionViewCell.h"
@interface MenuTuijianShicaiCollectionViewCell ()

@property (nonatomic, strong)UIImageView *picImageView;
@property (nonatomic, strong)UILabel *descLabel;
@end
@implementation MenuTuijianShicaiCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.picImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 50, 50)];
        self.descLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 50, 50, 20)];
        self.descLabel.textAlignment = NSTextAlignmentCenter;
        self.descLabel.font = [UIFont systemFontOfSize:13];
//        self.picImageView.backgroundColor = [UIColor magentaColor];
        [self.contentView addSubview:_picImageView];
        [self.contentView addSubview:_descLabel];
    }
    return self;
}

- (void)setModel:(MenuShiCaiModel *)model{
    _model = model;
    [self.picImageView sd_setImageWithURL:[NSURL URLWithString:model.image] placeholderImage:nil completed:nil];
    self.descLabel.text = model.text;
}
@end
